package com.enba.boot.security.enums;

import lombok.Getter;

@Getter
public enum AuthStatusEnum {
  ACCESS_DENIED(403, "权限不足，拒绝访问"),
  AUTHENTICATION_ENTRY_POINT(405, "禁止操作，请先登录"),
  AUTHENTICATION_FAILURE(406, "认证失败"),
  USERNAME_NOT_FOUND(407, "认证失败，用户名不存在"),
  BAD_CREDENTIALS(408, "认证失败，密码错误"),
  ACCOUNT_DISABLED(409, "认证失败，用户不可用"),
  ACCOUNT_EXPIRED(410, "认证失败，用户过期"),
  ACCOUNT_LOCKED(411, "认证失败，用户锁定"),
  CREDENTIALS_EXPIRED(412, "认证失败，证书过期"),
  TOKEN_ILLEGAL(413, "令牌非法"),
  CAPTCHA_EXPIRE(501, "验证码校验过期"),
  CAPTCHA_ERROR(502, "验证码校验错误"),
  ;

  private final Integer code;
  private final String msg;

  AuthStatusEnum(Integer code, String msg) {
    this.code = code;
    this.msg = msg;
  }
}
